package com.hspedu.service.impl;

import com.hspedu.dao.MemberMapper;
import com.hspedu.entity.Member;
import com.hspedu.service.MemberService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service
public class MemberServiceImpl implements MemberService {
    @Resource
    private MemberMapper mapper;
    @Override
    public Member queryById(Long id) {
        return mapper.queryById(id);
    }

    @Override
    public int save(Member member) {
        return mapper.save(member);
    }
}
